y_fill: true });
this._overview.add_actor(this._messageTrayGhost);
+ this._viewSelector.connect('page-changed', Lang.bind(this,
+ function() {
+ this._setSideControlsVisibility();
+ }));
+
Main.layoutManager.connect('monitors-changed', Lang.bind(this, this._relayout));
this._relayout();
},
+ _setSideControlsVisibility: function() {
+ // Ignore the case when we're leaving the overview, since
+ // actors will be made visible again when entering the overview
+ // next time, and animating them while doing so is just
+ // unnecesary noise
+ if (!this.visible || this._hideInProgress)
+ return;
+
+ let activePage = this._viewSelector.getActivePage();
+ let thumbnailsVisible = (activePage == ViewSelector.ViewPage.WINDOWS);
+
+ if (thumbnailsVisible)
+ this._thumbnailsSlider.slideIn();
+ else
+ this._thumbnailsSlider.slideOut();
+ },
+
addSearchProvider: function(provider) {
this._viewSelector.addSearchProvider(provider);
},